<template>
  <div class="form-design-container">
    <h5ve-form-design ref="formDesign" :options="info.pageData"/>
  </div>
</template>

<script>
import {fieldsTemplateAnalysis} from "@/api/toolkit/form";
import  {getToken} from "@/utils/auth";

export default {
  name: "FormDesign",
  components: {

  },
  props: {
    info: {
      type: Object,
      default() {
        return {
          pageData: {}
        }
      }
    }
  },
  data() {
    return {
      design: {
        visible: false,
        form: {
          action: fieldsTemplateAnalysis(),
          headers: {
            "h5ve": getToken()
          },
          accept: ".xlsx",
          limit: 1
        }
      }
    }
  }
}
</script>

<style scoped lang="scss">
.form-design-container {
  height: calc(100vh - 45px);
  ::v-deep {
    .el-collapse {
      border-top: 0;
    }
  }
}
</style>
